package ar.com.drconta.ganancias.editors.example;

import org.eclipse.jface.viewers.ILabelProviderListener;
import org.eclipse.jface.viewers.ITableLabelProvider;
import org.eclipse.swt.graphics.Image;

import ar.com.drconta.ganancias.editors.example.modelVO.House;

class FolderTableLabelProvider implements ITableLabelProvider{
 
      /**
	 * 
	 */
	private View TableLabelProvider;

	/**
	 * @param view
	 */
	FolderTableLabelProvider(View view) {
		TableLabelProvider = view;
	}

	public Image getColumnImage(Object element, int columnIndex){
         return null;
      }
 
      public String getColumnText(Object element, int columnIndex){
         switch (columnIndex){
            case 0: return element.toString();
            case 1:
               if (element instanceof House)
                  return ((House)element).getPerson();
            case 2: 
               if (element instanceof House)
                  return ((House)element).getSex();
         }
         return null;
      }
 
      public void addListener(ILabelProviderListener listener){
      }
 
      public void dispose(){
      }
 
      public boolean isLabelProperty(Object element, String property){
         return false;
      }
 
      public void removeListener(ILabelProviderListener listener){
      }
   }